﻿import store from '@/store'

// tab导航栏中增加一个
export function pushWebUrlToTagsView(title, url) {

  let path = encodeURI(url)
  let tag = {
    fullPath: '/web_view?url=' + path,
    hash: "",
    name: title,
    params: {},
    path: "/web_view",
    meta: {
      title: title
    },
    query: {
      url: path
    }
  }
  store.dispatch('tagsView/addVisitedView',tag)
}
